<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>员工</a></li>
        <li><a href="{:url('leader/staffadd',array('id'=>$id))}">新增员工</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>姓名</th>
                <th>工种</th>
                <th>手机号</th>
                <th>入职时间</th>
                <th>离职时间</th>

                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v">
                <tr>
                    <td>{$v.name}</td>
                    <td>{$v.type}</td>
                    <td>{$v.mobile}</td>
                    <td>{$v.incTime}</td>
                    <td>{$v.outTime}</td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('editstaff',array('id'=>$v['id']))}">编辑</a>
                        <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                           href="{:url('leader/delstaff',array('id'=>$v['id']))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>